package com.pond.pond.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 鱼塘评价对象 pond_comment
 *
 * 记录用户对鱼塘的评分与评价内容
 *
 * @author ruoyi
 * @date 2025-07-10
 */
@Getter
@Setter
@TableName("pond_comment")
public class PondComment implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 评价ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 鱼塘ID */
    private Long pondId;

    /** 租户ID */
    private Long deptId;

    /** 评价用户ID */
    private Long userId;

    /** 关联消费订单ID */
    private Long orderId;

    /** 评分，1~5 */
    private Integer score;

    /** 评价内容 */
    private String content;

    /** 是否匿名，0否1是 */
    private Integer isAnonymous;

    /** 关联的评价图片列表 */
    @TableField(exist = false)
    private List<PondCommentImage> images;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "GMT+8")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "GMT+8")
    private Date updateTime;
}
